package com.test;

import io.netty.channel.AbstractChannel;
import io.netty.channel.Channel;
import io.netty.util.internal.InternalThreadLocalMap;
import io.netty.util.internal.SystemPropertyUtil;

/**
 * @author wufagang
 * @description
 * @date 2022年07月03日 15:33
 */
public class Demo3 {
    private static final int MAX_LISTENER_STACK_DEPTH = Math.min(8,
            SystemPropertyUtil.getInt("io.netty.defaultPromise.maxListenerStackDepth", 8));
    public static void main(String[] args) {
//        System.out.println(MAX_LISTENER_STACK_DEPTH);
        final InternalThreadLocalMap threadLocals = InternalThreadLocalMap.get();
        System.out.println(threadLocals.futureListenerStackDepth());

    }
}
